package com.ss.android.article.base.feature.detail2.a;

import com.ss.android.article.base.app.BizApplication;
import com.ss.android.b.a.BaseAdsData;
import com.ss.android.common.ad.MobAdClickCombiner;

import org.json.JSONException;
import org.json.JSONObject;

public final class aa {
    public boolean a;
    public boolean b;
    public BaseAdsData c;

    public aa(BaseAdsData arg2) {

        this.a = false;
        this.b = false;
        this.c = arg2;
    }

    public final void a(String arg2) {
        if (!this.a) {
            this.a(arg2, "install_finish");
            this.a = true;
        }
    }

    public final void a(String arg11, String arg12) {
        JSONObject jsonObject;
        if (!android.support.design.a.isTextEmpty(arg11) && !android.support.design.a.isTextEmpty(arg12) && this.c != null) {
            try {
                jsonObject = new JSONObject();
                jsonObject.put("log_extra", this.c.logExtra);
                MobAdClickCombiner.onAdEvent(BizApplication.getApplication(), arg11, arg12, this.c.id, 0, jsonObject, 1);
            } catch (JSONException jsonException) {
                jsonException.printStackTrace();
            }
        }
    }
}

